package com.stockz.equity.charting.display.indicator;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stockz.equity.charting.painter.indicator.BarIndicatorPainter;
import com.stockz.equity.charting.util.Constant.OVERLAY;
import com.stockz.equity.indicator.Indicator;
import com.stockz.equity.indicator.climaticVolume.BullishClimaticVolumeIndicator;
import com.stockz.equity.indicator.climaticVolume.BullishClimaticVolumeIndicatorConfiguration;
import com.stockz.equity.model.Bar.BarValueType;


@Component
public class BullishClimaticVolumeIndicatorDisplay extends AbstractDisplayableIndicatorConfiguration {
	
	@Autowired
	private BullishClimaticVolumeIndicator bullishClimaticVolumeIndicator;
	
	@Override
	public  Indicator<BullishClimaticVolumeIndicatorConfiguration> getIndicator() {
		return bullishClimaticVolumeIndicator;
	}
	
	@Override
	public String getFullName() {
		return "Bullish Climatic Volume";
	}

	@Override
	public String getShortName() {
		return "BCV";
	}

	@Override
	public String getDescription() {
		return getShortName()+","+bullishClimaticVolumeIndicator.getIndicatorConfiguration().getLongSpan();
	}
	
	@Override
	public OVERLAY getOverlay() {
		return OVERLAY.INDEPENDENT;
	}

	@Override
	public Class<BarIndicatorPainter> getPainterClass() {
		return BarIndicatorPainter.class;
	}

	@Override
	public boolean isOverlappable() {
		return false;
	}

	@Override
	public Object getConfiguration() {
		return bullishClimaticVolumeIndicator.getIndicatorConfiguration();
	}
	
	@Override
	public BarValueType getBarValueType() {
		return bullishClimaticVolumeIndicator.getBarValueType();
	}
	
	@Override
	public void setBarValueType(BarValueType barValueType) {
		bullishClimaticVolumeIndicator.setBarValueType(barValueType);
	}

}
